package com.edu.zut.hb.software.server.config;

import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.jms.Queue;

@Configuration
public class MqConfig {

//    @Value("${topic.name}")
//    String topicName;
    @Value("${queue.name}")
    String queueName;

    @Bean
    public Queue queue(){
        return new ActiveMQQueue(queueName);
    }

//    @Bean
//    public Topic topic() {
//        return new ActiveMQTopic(topicName);
//    }
}